#ifndef _CORE_H_
#define _CORE_H_
#include <avr/io.h>

#define hsch_max_tasks 4
#define interrupt_status SREG>>7
#define ErrorTooManyTasks 1
#define ErrorCannotDeleteTask 2
#define ErrorDelayIsZero 3
extern void core(void);
extern void tasks_update(void);
extern uint8_t task_add(void(*fn_p)(),uint32_t delay,uint32_t period,uint8_t co_op);


#endif
